<?php /* Smarty version 2.6.26, created on 2014-12-15 03:03:03
         compiled from page/daftarpro.html */ ?>
<h4>Daftar Produk ON_Store</h4>

<table class="table">
    <tr>
        <th>Merk</th>
        <th>Kategori</th>
        <th>Stok</th>
        <th>Harga</th>
        <th>Deskripsi</th>
        <th>Prev</th>
        <th></th>   
    </tr>   
    <?php $_from = $this->_tpl_vars['pro']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['s']):
?>
    <tr>
        <td><?php echo $this->_tpl_vars['s']['nama']; ?>
</td>
        <td><?php echo $this->_tpl_vars['s']['kategori']; ?>
</td>
        <td><?php echo $this->_tpl_vars['s']['stok']; ?>
</td>
        <td><?php echo $this->_tpl_vars['s']['harga']; ?>
</td>
        <td><?php echo $this->_tpl_vars['s']['deskripsi']; ?>
</td>
        <td><img src="<?php echo $this->_tpl_vars['s']['img']; ?>
" width='200px'></td>
        <td>
            <a href="editpro.php?idproduk=<?php echo $this->_tpl_vars['s']['idproduk']; ?>
" class="btn btn-small btn-success">Edit</a>
            <a href="daftarpro.php?a=del&idproduk=<?php echo $this->_tpl_vars['s']['idproduk']; ?>
" class="btn btn-small btn-warning">Delete</a>
        </td>
    </tr>   
    <?php endforeach; endif; unset($_from); ?>
</table>